package com.nine.entity;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * Order entity. @author MyEclipse Persistence Tools
 */

public class Order implements java.io.Serializable {

	// Fields

	private Integer orderId;
	private String customerId;
	private Integer isPay;
	private Integer point;
	private Timestamp orderTime;
	private Integer isCheck;
	private String receiverName;
	private Integer port;
	private String telephone;
	private String address;
	private Double totalPrice;
	private Set orderitems = new HashSet(0);

	// Constructors

	/** default constructor */
	public Order() {
	}

	/** minimal constructor */
	public Order(String customerId, Integer isPay, Integer point,
			Timestamp orderTime, Integer isCheck, String receiverName,
			String telephone, String address, Double totalPrice) {
		this.customerId = customerId;
		this.isPay = isPay;
		this.point = point;
		this.orderTime = orderTime;
		this.isCheck = isCheck;
		this.receiverName = receiverName;
		this.telephone = telephone;
		this.address = address;
		this.totalPrice = totalPrice;
	}

	/** full constructor */
	public Order(String customerId, Integer isPay, Integer point,
			Timestamp orderTime, Integer isCheck, String receiverName,
			Integer port, String telephone, String address, Double totalPrice,
			Set orderitems) {
		this.customerId = customerId;
		this.isPay = isPay;
		this.point = point;
		this.orderTime = orderTime;
		this.isCheck = isCheck;
		this.receiverName = receiverName;
		this.port = port;
		this.telephone = telephone;
		this.address = address;
		this.totalPrice = totalPrice;
		this.orderitems = orderitems;
	}

	// Property accessors

	public Integer getOrderId() {
		return this.orderId;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

	public String getCustomerId() {
		return this.customerId;
	}

	public void setCustomerId(String customerId) {
		this.customerId = customerId;
	}

	public Integer getIsPay() {
		return this.isPay;
	}

	public void setIsPay(Integer isPay) {
		this.isPay = isPay;
	}

	public Integer getPoint() {
		return this.point;
	}

	public void setPoint(Integer point) {
		this.point = point;
	}

	public Timestamp getOrderTime() {
		return this.orderTime;
	}

	public void setOrderTime(Timestamp orderTime) {
		this.orderTime = orderTime;
	}

	public Integer getIsCheck() {
		return this.isCheck;
	}

	public void setIsCheck(Integer isCheck) {
		this.isCheck = isCheck;
	}

	public String getReceiverName() {
		return this.receiverName;
	}

	public void setReceiverName(String receiverName) {
		this.receiverName = receiverName;
	}

	public Integer getPort() {
		return this.port;
	}

	public void setPort(Integer port) {
		this.port = port;
	}

	public String getTelephone() {
		return this.telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Double getTotalPrice() {
		return this.totalPrice;
	}

	public void setTotalPrice(Double totalPrice) {
		this.totalPrice = totalPrice;
	}

	public Set getOrderitems() {
		return this.orderitems;
	}

	public void setOrderitems(Set orderitems) {
		this.orderitems = orderitems;
	}

}